﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Com.CodePlex.SPC3">
    <File Path="Com.CodePlex.SPC3\CreateListProfileField.aspx" Url="Com.CodePlex.SPC3/CreateListProfileField.aspx" />
  </Module>
  <CustomAction
      Id="{C163CFEB-9F46-4e37-BA46-F8852351469F}"
      GroupId="GeneralSettings"
      Location="Microsoft.SharePoint.ListEdit"
      RequireSiteAdministrator="FALSE"
      Sequence="100"
      Title="Create list profile field (SPC3)">
    <UrlAction Url="~site/Com.CodePlex.SPC3/CreateListProfileField.aspx?List={ListId}" />
  </CustomAction>
  <CustomAction
      Id="{8C7228E6-6E9F-4bc2-A01B-F15B4AA6104E}"
      Location="CommandUI.Ribbon"
      RegistrationType="FileType"
      Rights="ManageLists"
      RegistrationId="0x01">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Extended.SPC3.Controls._children">    
          <Button
            Id="Ribbon.Extended.SPC3.CreateListProfileField"
            Sequence="11"
            Command="Ribbon.Extended.SPC3.CreateListProfileField"
            Image16by16="/_layouts/images/mysitetitle.png"
            Image32by32="/_layouts/images/mysitetitle.png"
            LabelText="Create List Profile Field"
            ToolTipTitle="Create List Profile Field"
            ToolTipDescription="Create List Profile Field"
            TemplateAlias="button1"
            Alt="Create List Profile Field" />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
          Command="Ribbon.Extended.SPC3.CreateListProfileField"
          CommandAction="~site/Com.CodePlex.SPC3/CreateListProfileField.aspx?List={ListId}" />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
</Elements>